package com.yunxi.model.otd;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 月计划接口表
 * </p>
 *
 * @author 
 * @since 2019-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pms_otd_if_month_plan")
@ApiModel(value="OtdIfMonthPlan对象", description="月计划接口表")
public class OtdIfMonthPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "IF_PLAN_ID", type = IdType.UUID)
    private String ifPlanId;

    @ApiModelProperty(value = "生产计划编号")
    @TableField("PLAN_NO")
    private String planNo;

    @ApiModelProperty(value = "行项目编号")
    @TableField("ITEM_NO")
    private String itemNo;

    @ApiModelProperty(value = "数量")
    @TableField("NUM")
    private Integer num;

    @ApiModelProperty(value = "变量车型（15位物料码）")
    @TableField("CAR_MODEL")
    private String carModel;

    @ApiModelProperty(value = "订单年")
    @TableField("ORDER_YEAR")
    private String orderYear;

    @ApiModelProperty(value = "订单月")
    @TableField("ORDER_MONTH")
    private String orderMonth;

    @ApiModelProperty(value = "产品编码")
    @TableField("PRODUCT_CODE")
    private String productCode;

    @ApiModelProperty(value = "上线日期")
    @TableField("START_DATE")
    private String startDate;

    @ApiModelProperty(value = "工厂")
    @TableField("WORKS")
    private String works;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value="CREATE_DATE",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "最后修改人")
    @TableField(value="UPDATE_BY",fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value="UPDATE_DATE",fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    @Version
    @ApiModelProperty(value = "版本号")
    @TableField("VERSION")
    private Integer version;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "接口传送标识")
    @TableField("IS_SEND")
    private Integer isSend;

    @ApiModelProperty(value = "SAP接口状态 N待发送 W待反馈 S成功 E异常")
    @TableField("SAP_STATE")
    private String sapState;

    @ApiModelProperty(value = "SAP订单号")
    @TableField("SAP_NO")
    private String sapNo;

    @ApiModelProperty(value = "异常信息")
    @TableField("ERROR_INFO")
    private String errorInfo;


}
